function type = vm_classify(src_img, blk_list, blk)
% VM_CLASSIFY classify block: edge, texture, structure
% TuannD
% 04/03/13
% rng('shuffle');
% type = rand(1);
%Edge Density Version
%Modeling the masking effect of the HVS with visual attention model
[rows cols] = size(blk);
[blk_w blk_h] = size(blk);
[brows bcols] = size(blk_list);
bw = edge(src_img, 'canny');
bw_list = vm_im2blk(bw, blk_w, blk_h);
blk_ed = zeros(brows, bcols);
for i = 1:brows
    for j = 1:bcols
        blk_bw = bw_list{i,j};
        blk_ed(i,j) = sum(blk_bw(:))/(blk_w * blk_h);
    end
end
alpha1 = 0.1;
alpha2 = 0.2;
alpha3 = 0.3;

end